<template>
	<view class="pt30">
		<view class="flex_sb h100 mb30 plr30 bf">
			<text>可提现金额</text>
			<text class="orange">￥{{query.money}}</text>
		</view>
		<view class="flex_sb h100 mb160 plr30 bf">
			<text></text>
			<view class="flex_a">
				<text class="plr10">提现到支付宝零钱</text>
				<u-icon name="arrow-right" color="#999" size="26"></u-icon>
			</view>
			
		</view>
		<view class="plr100 mb30"><u-button type="primary" shape="circle" @click="depositWithdraw">申请提现</u-button></view>
	</view>
</template>

<script>
	import { depositWithdraw } from '@/api/user.js'
	export default {
		name: 'withdrawal',
		data() {
			return {
				query: {}
			}
		},
		onLoad(e) {
			this.query = e
		},
		methods: {
			async depositWithdraw() {
				const res = await depositWithdraw({id:this.query.id})
				await this.confirm({content: '申请已提交'})
				this.back(-1)
			}
		}
	}
</script>

<style lang="scss">

</style>
